﻿using UnityEngine;
using System.Collections;

public class carryableObject : MonoBehaviour {
	
	public playerScript myParent;
	protected playerScript player;
	protected bool isPlayerIn;
	//public Transform carriedBy;
	
	// Use this for initialization
	protected void Start () {

	}
	
	void OnTriggerEnter(Collider myCol)
	{	
		if(myCol.tag == "Player" && myCol.networkView.isMine)
		{	
			player = myCol.GetComponent<playerScript>();
			
			isPlayerIn = true;
		}
	}
	
	void OnTriggerExit(Collider myCol)
	{	
		if(myCol.tag == "Player" && myCol.networkView.isMine)
		{	
			isPlayerIn = false;
		}
	}
}
